package 技巧;

/**
 * @author TTDB
 * @create 2025/9/23
 */
public class singleNumber {
     public int singleNumber(int[] nums) {
        int ans = 0;
        for (int num : nums) {
            ans ^= num;
        }
        return ans;
    }
}
